import requests


class IhrmLoginApi(object):
    @staticmethod
    def login(json_data):  # 静态方法

        resp =requests.post(url="http://ihrm-test.itheima.net/api/sys/login",
                            json =json_data)
        return resp


if __name__ == '__main__':
    resuilt=IhrmLoginApi.login({"mobile":"13800000002","password":"123456"})
    print(resuilt.json())